<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>第四章 事件测试</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../../ext0310/resources/css/ext-all.css" />
        <script type="text/javascript" src="modify/Ext.js ">
        </script>
        <script type="text/javascript" src="../../ext0310/adapter/ext/ext-base.js">
        </script>
        <script type="text/javascript" src="../../ext0310/ext-all-debug.js">
        </script>
    </head>
    <body>
        <div id='div1'>
            <a id="test1" style="cursor:hand;">
            test1,click me!
        </div>
        <script type="text/javascript">
            function clickme(e){
                alert('normal2:' + this.id);
                e.preventDefault();
            }
            
            
            function clickme(e, t, o){
                alert('nodeName:' + t.nodeName + "." + o.privateMsg);
            }
            
            Ext.onReady(function(){
            
                Ext.get('test1').on('click', clickme);
  				
                Ext.get('test1').on('click', clickme, this, {
                    preventDefault: true,
                    privateMsg: 'privateMsg'
                });
//				Ext.get('test1').un('click', clickme, this);
                Ext.get('test1').un('click', clickme);

            })
        </script>
    </body>
</html>
